// singleton.h

#ifndef SINGLETON_H
#define SINGLETON_H

// warning: thread UNSAFE!

template <typename T>
class Singleton
{
public:
	static T &Instance(void)
	{
		static T instance;
		return instance;
	}
};

#endif
